﻿using Nop.Web.Framework.Localization;
using Nop.Web.Framework.Mvc.Routes;
using System.Web.Routing;

namespace Nop.Web.WindAlert
{

	public partial class GenericUrlRouteProvider : IRouteProvider
	{
		public void RegisterRoutes(RouteCollection routes)
		{

			routes.MapLocalizedRoute("Camera",
								"{SeName}",
								new { controller = "WCamera", action = "Camera" },
								new[] { "Nop.Web.Controllers" });

			routes.MapLocalizedRoute("Spot",
										"{SeName}",
										new { controller = "WSpot", action = "Spot" },
										new[] { "Nop.Web.Controllers" });

		}

		public int Priority
		{
			get
			{
				//it should be the last route
				//we do not set it to -int.MaxValue so it could be overriden (if required)
				return -1000001;
			}
		}
	}

}
